﻿namespace PoemGame.Management.Domain.Seedwork
{
    public class EntityBase
    {
        public Guid Id { get; protected set; }

        //public override bool Equals(object? obj)
        //{
        //    if (Id != Guid.Empty && obj != null && obj is EntityBase && Id == (obj as EntityBase).Id) return true;
        //    return base.Equals(obj);
        //}

        //public static bool operator ==(EntityBase obj1, EntityBase obj2) => obj1.Equals(obj2);

        //public static bool operator !=(EntityBase obj1, EntityBase obj2) => !obj1.Equals(obj2);
    }
}
